#ifndef VASH_DATABASE_HEADER
	#define VASH_DATABASE_HEADER
	#include "Utilities.h"
	struct sqlite3;
	/*
	 * This class interfaces vash to sqlite database.
	 */
	class Database
	{
		public:
			Database(std::string config_path);
			bool execStatement(std::string command);
			//NOTE: Should rewrite, using user functions for performance reassons.
			bool execUnarryIntStatement(std::string command,int & value);
			bool execUnarryStrStatement(std::string command,std::string & value);
			int getConfIntValue(std::string table,std::string expr);
			ValueTable * makeQuery(std::string cmd);
			std::string addString(std::string str);
			void vacuum();
			~Database();
		private:
			sqlite3 * db;
	};
#endif